package com.pg.data.gateway.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 录波解析后保存的结果对象
 */
@Data
public class ChannelDTO implements Serializable {
    // 序列化id
    private static final long serialVersionUID = 1L;
    // 相位
    @JsonInclude(JsonInclude.Include.NON_NULL) // 序列化时忽略null值
    private String phase = null;
    // 电流
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<Double> current;
    // 电压
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<Double> voltage;
    // 开关状态
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<Integer> status;

}
